﻿using System;
using System.Collections.Generic;

using aier.dataaccess.model;
using aier.dataaccess.dapper;
using aier.wx.nosql.redis;
using aier.xrm.wcf;

using Microsoft.Xrm.Sdk;

namespace aier.business.logic
{
    public class SysParaBll
    {
        public SysParaDal sysParaDal { get; set; }

        /// <summary>
        /// 获取所有参数列表信息  
        /// 对应原程序 getAll()
        /// </summary>
        /// <returns></returns>
        public List<SysPara> GetAll()
        {
            return sysParaDal.GetAll();
        }

        /// <summary>
        /// 根据参数类型与代码获取参数对像
        /// 对应原程序 getById
        /// </summary>
        /// <param name="paratype">参数类型</param>
        /// <param name="paracode">参数代码</param>
        /// <returns></returns>
        public SysPara GetById(string paratype, string paracode)
        {
            return sysParaDal.GetById(paratype, paracode);
        }
    }
}
